package com.atguigu.gmallpublisher.service;

import com.atguigu.gmallpublisher.bean.KeywordStats;
import com.atguigu.gmallpublisher.mapper.KeywordStatsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class KeywordStatsServiceImp implements KeywordStatsService {
    @Autowired
    KeywordStatsMapper keywordStatsMapper;
    
    @Override
    public List<KeywordStats> getKeywordStats(int date, int limit) {
        return keywordStatsMapper.selectKeywordStats(date, limit);
    }
}